<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Brand_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[brand_id]">
                {foreach name="brandList" item="vo"}
                <option value="{$key}"{in name="key" value="$row.brand_id"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cate_title')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[cate_id]">
                {foreach name="cateList" item="vo"}
                <option value="{$key}"{in name="key" value="$row.cate_id"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-image" class="control-label col-xs-12 col-sm-2">{:__('Goods_logo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="50" name="row[goods_logo]" type="text" value="{$row.goods_logo}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <!--<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_title" class="form-control form-control" name="row[goods_title]" type="text" value="{$row.goods_title}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_model')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_model" class="form-control form-control" name="row[goods_model]" type="text" value="{$row.goods_model}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_spec')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_spec" class="form-control form-control" name="row[goods_spec]" type="text" value="{$row.goods_spec}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_weight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_weight" class="form-control form-control" step="0.01" name="row[goods_weight]" type="number" value="{$row.goods_weight}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_desc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_desc" class="form-control form-control" name="row[goods_desc]" type="text" value="{$row.goods_desc}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Purchase_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-purchase_price" class="form-control form-control" step="0.01" name="row[purchase_price]" type="number" value="{$row.purchase_price}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Market_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-market_price" class="form-control form-control" step="0.01" name="row[market_price]" type="number" value="{$row.market_price}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Selling_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-selling_price" class="form-control form-control" step="0.01" name="row[selling_price]" type="number" value="{$row.selling_price}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
